/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package com.ideal.Interface;

import java.util.List;
import java.util.Map;

/**
 *
 * @author Huyu
 */
public class DevProcess {
    private DevInterface dev;
    public DevProcess (){
        dev = null;
    }
    /*
     *注册设备
     */
    public void RegisterDev(DevInterface d){
        dev = d;
    }
    
    public List<Map> start(){
        if(dev == null){
             return null;
        }
        return dev.getDevInfo();
    }
}
